/*
 * @Author: EltonLi lijiaming@uavi-tech.com
 * @Date: 2023-10-12 14:16:07
 * @LastEditors: LVGRAPE
 * @LastEditTime: 2025-03-13 15:09:38
 * @FilePath: \zino-fc-v4\applications\ZINO_FC_V4.0\motorset\motorset.h
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
#ifndef __MOTORSET_H__
#define __MOTORSET_H__

#ifdef __cplusplus
extern "C"
{
#endif

#include <rtthread.h>
#include "statecontrol.h"
    typedef struct motorMixer_s
    {
        float throttle;
        float roll;
        float pitch;
        float yaw;
    } motorMixer_t;
    typedef enum
    {
        Motor1 = 0,
        Motor2,
        Motor3,
        Motor4,
        MotorCount,
    } motorList_e;
    extern uint16_t motoroutput[MotorCount];
    void fc_motor_on();
    void fc_motor_off();
    void fc_motor_set_output(fc_control_t *out);

#ifdef __cplusplus
}
#endif

#endif /* ZINO_IMU_IMU_H_ */
